package com.jt.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.math.BigDecimal;

/*余额扣减服务*/
@FeignClient(name = "account-fuwu")
@Service
public interface AccountFeign {
    @GetMapping("/delete/{userId}/{money}")
    boolean deleteAccount(@PathVariable("userId") String userId, @PathVariable("money") BigDecimal money);

}
